package com.navinfo.tripanalysis.common.arithmetic.enums;

import com.google.common.collect.Range;

/**
 * 油门开度区间
 * @author haomc
 * @create 2020/6/19
 */
public enum RangeGasOpenPercentChangeEnum {
    RANGE_F50(Range.lessThan(-50)),
    RANGE_F40(Range.openClosed(-50,-40)),
    RANGE_F30(Range.openClosed(-40,-30)),
    RANGE_F20(Range.openClosed(-30,-20)),
    RANGE_F10(Range.openClosed(-20,-10)),
    RANGE_0(Range.open(-10,0)),
    RANGE_eq_0(Range.closed(0,0)),
    RANGE_10(Range.openClosed(0,10)),
    RANGE_20(Range.openClosed(10,20)),
    RANGE_30(Range.openClosed(20,30)),
    RANGE_40(Range.openClosed(30,40)),
    RANGE_50(Range.openClosed(40,50)),
    RANGE_Max(Range.greaterThan(50)),
    RANGE_VALID(Range.closed(-100,100));

    private Range<Integer> range;

    RangeGasOpenPercentChangeEnum(Range<Integer> range) {
        this.range = range;

    }

    public Range<Integer> getRange() {
        return range;
    }



}